package com.pipayshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pipayshop.domain.ShopCommodity;
import com.pipayshop.domain.dto.ShopCommodityDto;
import com.pipayshop.domain.vo.CommodityDetailVO;
import com.pipayshop.domain.vo.ShopCommodityPageVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author xiaoqiu
 * @date 2024/9/10 11:12
 * @description
 */
public interface OnlineStoreShopCommodityService extends IService<ShopCommodity> {
    boolean saveOrUpdate(ShopCommodityDto shopCommodityDto);

    ShopCommodityPageVo listCommodity(ShopCommodityDto shopCommodityDto);

    String shopImagsUp(MultipartFile multipartFile);

    String shopDetailImagsUp(MultipartFile multipartFile);
    Integer getInventoryByCommodityId(String commodityId);

    CommodityDetailVO itemCommodityDetail(String commodityId);

    Integer upOrdown(String commodityId,Integer status);

    Integer delCommodity(String commodityId);

//    PageVo getCollectList(Integer page, Integer limit, String userId);
}
